﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace VkcomAPI.PublicTypes
{
    /// <summary>
    /// Represents a song item
    /// </summary>
    public class SongInfo
    {
        public string Artist { get; set; }
        public string Track { get; set; }
#warning maybe Length and BitRate must be non string type?
        public string Length { get; set; }
        public string BitRate { get; set; }
        public string Url { get; set; }

        public SongInfo(XElement xmlNode)
        {
            Artist = xmlNode.Element("artist").Value.Trim();
            Track = xmlNode.Element("title").Value.Trim();
            Url = xmlNode.Element("url").Value;
        }

        public SongInfo()
        {
        }
    }
}
